package com.zhuchang.self_rpc.test.democoding.nettydubbo.server;

/**
 * @Author RenPu
 * @Date 2022/2/12 14:43
 * @Version 1.0
 * @Description:
 **/
public class HelloServiceImpl implements HelloService {

    private static int count=0;


    @Override
    public String hello(String msg) {
        System.out.println("服务端已经......收到客户端发送的消息："+msg);
        if(msg!=null){
            return "你好，我已经收到客户端的消息["+msg+"] 第"+(++count)+"次";
        }else {
            return "你好，我已经收到客户端的消息";
        }
    }
}
